/*
 * ipassbook 0.6.0
 * Copyright (C)2009 wateray and contributors
 * wateray@gmail.com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

package com.wateray.ipassbook.domain.form;

import java.io.Serializable;
import java.util.Date;

import com.wateray.ipassbook.domain.Entity;


/**
 * @author wateray
 * @create 2009-5-19
 */
public class PassbookForm implements Entity, Serializable {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	
	private String passbookId;
	private String passbookSubId;
	private String passbookName;
	private String currencyId;
	private String currencyName;
	private String createDate;
	private double  capital;
	private double  balance;
	private String memo;
	
	public PassbookForm(){}
	
	/**
	 * @return the passbookId
	 */
	public String getPassbookId() {
		return passbookId;
	}
	/**
	 * @param passbookId the passbookId to set
	 */
	public void setPassbookId(String passbookId) {
		this.passbookId = passbookId;
	}

	/**
	 * @return the passbookSubId
	 */
	public String getPassbookSubId() {
		return passbookSubId;
	}

	/**
	 * @param passbookSubId the passbookSubId to set
	 */
	public void setPassbookSubId(String passbookSubId) {
		this.passbookSubId = passbookSubId;
	}

	/**
	 * @return the passbookName
	 */
	public String getPassbookName() {
		return passbookName;
	}
	/**
	 * @param passbookName the passbookName to set
	 */
	public void setPassbookName(String passbookName) {
		this.passbookName = passbookName;
	}
	/**
	 * @return the currencyId
	 */
	public String getCurrencyId() {
		return currencyId;
	}
	/**
	 * @param currencyId the currencyId to set
	 */
	public void setCurrencyId(String currencyId) {
		this.currencyId = currencyId;
	}
	/**
	 * @return the currencyName
	 */
	public String getCurrencyName() {
		return currencyName;
	}
	/**
	 * @param currencyName the currencyName to set
	 */
	public void setCurrencyName(String currencyName) {
		this.currencyName = currencyName;
	}
	/**
	 * @return the createDate
	 */
	public String getCreateDate() {
		return createDate;
	}
	/**
	 * @param createDate the createDate to set
	 */
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	/**
	 * @return the capital
	 */
	public double getCapital() {
		return capital;
	}
	/**
	 * @param capital the capital to set
	 */
	public void setCapital(double capital) {
		this.capital = capital;
	}
	/**
	 * @return the balance
	 */
	public double getBalance() {
		return balance;
	}
	/**
	 * @param balance the balance to set
	 */
	public void setBalance(double balance) {
		this.balance = balance;
	}
	/**
	 * @return the memo
	 */
	public String getMemo() {
		return memo;
	}
	/**
	 * @param memo the memo to set
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	/**
	 * @return the passbookDetailId
	 */
	public String getPassbookDetailId() {
	 return passbookId + passbookSubId;
	}

	
	@Override
	public String getEntityId() {
		// TODO Auto-generated method stub
		return getPassbookDetailId();
	}
	@Override
	public String getEntityName() {
		// TODO Auto-generated method stub
		return passbookName;
	}
	
}
